package designPatterns_demo.mediator_pattern.demo3_currency;
/**
 * 
 *
 * Description: 通用抽象中介类
 *
 * @author zhangxujun
 * @version 1.0
 * <pre>
 * Modification History: 
 * Date         Author			Version     Description 
 * ------------------------------------------------------------------ 
 * 2017年7月6日      zhangxujun       1.0         1.0 Version 
 * </pre>
 */
public abstract class Mediator {
	// 定义同事类
	protected ConcrtetColleague1 c1;
	protected ConcrtetColleague2 c2;
	
	// 通过geter/seter方法把同事类注入
	public ConcrtetColleague1 getC1() {
		return c1;
	}
	public void setC1(ConcrtetColleague1 c1) {
		this.c1 = c1;
	}
	public ConcrtetColleague2 getC2() {
		return c2;
	}
	public void setC2(ConcrtetColleague2 c2) {
		this.c2 = c2;
	}
	
	// 中介者模式的业务处理逻辑
	public abstract void doSomething1();
	public abstract void doSomething2();
	
}
